package com.ty.day1.home;

/**
 * Created by IntelliJ IDEA.
 *
 * @author : txy
 * @create : 2023/11/14 17:49
 */
public class Pet {
    String variety;
    String name;
    String color;
    public void cry(){
        System.out.println(name+"喜欢cry");
    }
    public void eat(){
        System.out.println(name+"喜欢eat");
    }

    @Override
    public String toString() {
        return "Pet{" +
                "variety='" + variety + '\'' +
                ", name='" + name + '\'' +
                ", color='" + color + '\'' +
                '}';
    }
}
